.toast {
    transition-property: opacity, transform;
    transition-duration: .4s;
    display: inline-block;
    cursor: pointer;
    z-index: 999999;
    position: fixed;
    opacity: 0;
    box-sizing: border-box;
    box-shadow: 0 0 3px rgba(0, 0, 0, .3);
    text-align: left;
    color: #fff;
    padding: 10px;
    width: 16em;
    border-radius: 5px
}

.toast .toast-icon {
    display: block;
    position: absolute;
    width: 30px;
    height: 30px;
    top: 0;
    bottom: 0;
    left: 8px;
    margin: auto;
    color: inherit
}

.toast .toast-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor
}

.toast .toast-text, .toast .toast-title {
    -ms-word-wrap: break-word;
    word-wrap: break-word
}

.toast .toast-title {
    font-size: 16px;
    line-height: 24px
}

.toast .toast-text {
    font-size: 14px;
    line-height: 18px
}

.toast .toast-close {
    z-index: 1;
    cursor: pointer;
    position: absolute;
    display: block;
    right: 0;
    top: 8px;
    width: 24px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    -webkit-text-shadow: 0 1px 0 #fff;
    text-shadow: 0 1px 0 #fff;
    opacity: .8
}

.toast .toast-close:hover {
    color: #000;
    opacity: .5
}

.toast.toast-with-close {
    padding-right: 20px
}

.toast.toast-with-icon {
    padding-left: 46px
}

.toast.toast-mobile {
    pointer-events: none;
    padding: 8px;
    min-height: 20px;
    width: auto;
    border-radius: 3px
}

.toast.toast-mobile .toast-icon {
    width: 20px;
    height: 20px
}

.toast.toast-mobile .toast-title {
    font-size: 14px;
    line-height: 20px
}

.toast.toast-mobile .toast-text {
    font-size: 12px;
    line-height: 16px
}

.toast.toast-mobile.toast-with-icon {
    padding-left: 36px
}

.toast.toast-y-top {
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0)
}

.toast.toast-y-bottom, .toast.toast-y-center {
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0)
}

.toast.toast-x-left {
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0)
}

.toast.toast-x-right {
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0)
}

.toast.toast-in {
    opacity: .9;
    -webkit-transform: translateZ(0);
    transform: translateZ(0)
}

.toast.toast-out {
    opacity: 0;
    -webkit-transform: translateZ(0) scale(.815);
    transform: translateZ(0) scale(.815)
}

.toast.toast-y-top {
    top: 70px
}

.toast.toast-y-center {
    top: 50%
}

.toast.toast-y-bottom {
    bottom: 70px
}

.toast.toast-x-left {
    left: 30px
}

.toast.toast-x-right {
    right: 30px
}

.toast.toast-type-success {
    background-color: #51a351
}

.toast.toast-type-info {
    background-color: #2f96b4
}

.toast.toast-type-warn, .toast.toast-type-warning {
    background-color: #f89406
}

.toast.toast-type-error {
    background-color: #bd362f
}

.toast.toast-type-default {
    background-color: #030303
}
